@extends('layouts.app')

@section('content')

    <heading>修改密码</heading>
    <card>

        <tig-form action="{{ route('users.password.update',['user'=>$user]) }}" :is-update="true">

            <default-field>
                <template slot="label" field-name="previous_password">原密码</template>
                <template slot="field">

                    <input title="原密码" type="password" name="previous_password" class="w-full form-control form-input form-input-bordered"
                        />

                </template>
            </default-field>
            <default-field>
                <template slot="label" field-name="password">新密码</template>
                <template slot="field">

                    <input title="新密码" type="password" name="password" class="w-full form-control form-input form-input-bordered"
                    />

                </template>
            </default-field>
            <default-field>
                <template slot="label" field-name="password_confirmation">新密码确认</template>
                <template slot="field">

                    <input title="新密码确认" type="password" name="password_confirmation" class="w-full form-control form-input form-input-bordered"
                    />

                </template>
            </default-field>
            <default-field>
                <template slot="field">
                    <button type="submit" class="btn btn-default btn-primary">
                        修改
                    </button>
                </template>
            </default-field>
        </tig-form>

    </card>

@endsection
